<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>团贷网</title>
    <meta name="description" content="团贷网"/>
    <meta name="keywords" content="团贷网"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
</head>
<body data-type="syslog">
<div th:include="framework/tpl/tpl-head-reference :: tpl-head-reference" ></div>
<div class="am-g tpl-g">
    <!-- 头部 -->
    <div th:include="framework/tpl/tpl-head :: tpl-head"></div>
    <!-- 风格切换 -->
    <div th:include="framework/tpl/tpl-skiner :: tpl-skiner" class="tpl-skiner"></div>
    <!-- 侧边导航栏 -->
    <div th:include="framework/tpl/tpl-leftsider :: tpl-leftside" class="left-sidebar"></div>


    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">系统日志管理</div>
                        </div>
                        <div class="widget-body  widget-body-lg am-fr">
                            <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                <div class="am-form-group">
                                    <div class="am-btn-toolbar">
                                        <div class="am-btn-group am-btn-group-xs">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="am-u-sm-12 am-u-md-12 am-u-lg-3 am-u-lg-offset-3">
                                <form class="am-input-group am-input-group-sm tpl-form-border-form cl-p" id="data-form"
                                      onkeydown="if(event.keyCode==13)return false;"
                                      th:action="@{/framework/sysLog/list}">
                                    <input type="text" name="contain_className" class="am-form-field " />
                                    <input type="hidden" name="page" value="1" />
                                    <span class="am-input-group-btn">
                                    <button v-on:click="searchForm"
                                            class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"
                                            type="button"></button>
                                    </span>
                                </form>
                            </div>

                            <table width="100%" style="visibility: hidden" class="am-table am-table-compact am-table-striped tpl-table-black "
                                   id="example-r">
                                <thead>
                                <tr>
                                    <th>类名</th>
                                    <th>方法名</th>
                                    <th>行号</th>
                                    <th>日志级别</th>
                                    <th>日志类型</th>
                                    <th>日志内容</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody id="data-tbody">

                                <tr v-for="item in json.content">
                                    <td>{{ item.className }}</td>
                                    <td>{{ item.methodName }}</td>
                                    <td>{{ item.lineNumber }}</td>
                                    <td>{{ item.logLevel }}</td>
                                    <td>{{ item.logType }}</td>
                                    <td>{{ item.logContent }}</td>
                                    <td>{{ item.createTime | time }}</td>
                                    <td>
                                        <div class="tpl-table-black-operation">
                                            <a data-href="/framework/sysLog/delete?id={{ item.id }}"
                                               data-confirm="删除系统日志将无法恢复，确定要操作么？"
                                               v-on:click="defaultBtnLinkVue($event )"
                                               class="tpl-table-black-operation-del">
                                                <i class="am-icon-trash"></i> 删除
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="am-u-lg-12 am-cf">
                                <div th:include="framework/tpl/tpl-data-fetch :: tpl-data-fetch"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="framework/tpl/tpl-foot :: tpl-foot" class="tpl-foot"></div>

</body>
</html>
